package com.secxiot.provider.task.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TaskSOSExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public TaskSOSExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andPatientNameIsNull() {
            addCriterion("patient_name is null");
            return (Criteria) this;
        }

        public Criteria andPatientNameIsNotNull() {
            addCriterion("patient_name is not null");
            return (Criteria) this;
        }

        public Criteria andPatientNameEqualTo(String value) {
            addCriterion("patient_name =", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotEqualTo(String value) {
            addCriterion("patient_name <>", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameGreaterThan(String value) {
            addCriterion("patient_name >", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameGreaterThanOrEqualTo(String value) {
            addCriterion("patient_name >=", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLessThan(String value) {
            addCriterion("patient_name <", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLessThanOrEqualTo(String value) {
            addCriterion("patient_name <=", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameLike(String value) {
            addCriterion("patient_name like", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotLike(String value) {
            addCriterion("patient_name not like", value, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameIn(List<String> values) {
            addCriterion("patient_name in", values, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotIn(List<String> values) {
            addCriterion("patient_name not in", values, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameBetween(String value1, String value2) {
            addCriterion("patient_name between", value1, value2, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientNameNotBetween(String value1, String value2) {
            addCriterion("patient_name not between", value1, value2, "patientName");
            return (Criteria) this;
        }

        public Criteria andPatientMobileIsNull() {
            addCriterion("patient_mobile is null");
            return (Criteria) this;
        }

        public Criteria andPatientMobileIsNotNull() {
            addCriterion("patient_mobile is not null");
            return (Criteria) this;
        }

        public Criteria andPatientMobileEqualTo(String value) {
            addCriterion("patient_mobile =", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileNotEqualTo(String value) {
            addCriterion("patient_mobile <>", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileGreaterThan(String value) {
            addCriterion("patient_mobile >", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileGreaterThanOrEqualTo(String value) {
            addCriterion("patient_mobile >=", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileLessThan(String value) {
            addCriterion("patient_mobile <", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileLessThanOrEqualTo(String value) {
            addCriterion("patient_mobile <=", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileLike(String value) {
            addCriterion("patient_mobile like", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileNotLike(String value) {
            addCriterion("patient_mobile not like", value, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileIn(List<String> values) {
            addCriterion("patient_mobile in", values, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileNotIn(List<String> values) {
            addCriterion("patient_mobile not in", values, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileBetween(String value1, String value2) {
            addCriterion("patient_mobile between", value1, value2, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andPatientMobileNotBetween(String value1, String value2) {
            addCriterion("patient_mobile not between", value1, value2, "patientMobile");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNull() {
            addCriterion("longitude is null");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNotNull() {
            addCriterion("longitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongitudeEqualTo(BigDecimal value) {
            addCriterion("longitude =", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotEqualTo(BigDecimal value) {
            addCriterion("longitude <>", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThan(BigDecimal value) {
            addCriterion("longitude >", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("longitude >=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThan(BigDecimal value) {
            addCriterion("longitude <", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("longitude <=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIn(List<BigDecimal> values) {
            addCriterion("longitude in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotIn(List<BigDecimal> values) {
            addCriterion("longitude not in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("longitude between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("longitude not between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(BigDecimal value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(BigDecimal value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(BigDecimal value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(BigDecimal value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<BigDecimal> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<BigDecimal> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andUserAddressIsNull() {
            addCriterion("user_address is null");
            return (Criteria) this;
        }

        public Criteria andUserAddressIsNotNull() {
            addCriterion("user_address is not null");
            return (Criteria) this;
        }

        public Criteria andUserAddressEqualTo(String value) {
            addCriterion("user_address =", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressNotEqualTo(String value) {
            addCriterion("user_address <>", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressGreaterThan(String value) {
            addCriterion("user_address >", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressGreaterThanOrEqualTo(String value) {
            addCriterion("user_address >=", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressLessThan(String value) {
            addCriterion("user_address <", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressLessThanOrEqualTo(String value) {
            addCriterion("user_address <=", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressLike(String value) {
            addCriterion("user_address like", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressNotLike(String value) {
            addCriterion("user_address not like", value, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressIn(List<String> values) {
            addCriterion("user_address in", values, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressNotIn(List<String> values) {
            addCriterion("user_address not in", values, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressBetween(String value1, String value2) {
            addCriterion("user_address between", value1, value2, "userAddress");
            return (Criteria) this;
        }

        public Criteria andUserAddressNotBetween(String value1, String value2) {
            addCriterion("user_address not between", value1, value2, "userAddress");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdIsNull() {
            addCriterion("emergency_id is null");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdIsNotNull() {
            addCriterion("emergency_id is not null");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdEqualTo(Long value) {
            addCriterion("emergency_id =", value, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdNotEqualTo(Long value) {
            addCriterion("emergency_id <>", value, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdGreaterThan(Long value) {
            addCriterion("emergency_id >", value, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdGreaterThanOrEqualTo(Long value) {
            addCriterion("emergency_id >=", value, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdLessThan(Long value) {
            addCriterion("emergency_id <", value, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdLessThanOrEqualTo(Long value) {
            addCriterion("emergency_id <=", value, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdIn(List<Long> values) {
            addCriterion("emergency_id in", values, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdNotIn(List<Long> values) {
            addCriterion("emergency_id not in", values, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdBetween(Long value1, Long value2) {
            addCriterion("emergency_id between", value1, value2, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyIdNotBetween(Long value1, Long value2) {
            addCriterion("emergency_id not between", value1, value2, "emergencyId");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameIsNull() {
            addCriterion("emergency_name is null");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameIsNotNull() {
            addCriterion("emergency_name is not null");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameEqualTo(String value) {
            addCriterion("emergency_name =", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameNotEqualTo(String value) {
            addCriterion("emergency_name <>", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameGreaterThan(String value) {
            addCriterion("emergency_name >", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameGreaterThanOrEqualTo(String value) {
            addCriterion("emergency_name >=", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameLessThan(String value) {
            addCriterion("emergency_name <", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameLessThanOrEqualTo(String value) {
            addCriterion("emergency_name <=", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameLike(String value) {
            addCriterion("emergency_name like", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameNotLike(String value) {
            addCriterion("emergency_name not like", value, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameIn(List<String> values) {
            addCriterion("emergency_name in", values, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameNotIn(List<String> values) {
            addCriterion("emergency_name not in", values, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameBetween(String value1, String value2) {
            addCriterion("emergency_name between", value1, value2, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyNameNotBetween(String value1, String value2) {
            addCriterion("emergency_name not between", value1, value2, "emergencyName");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileIsNull() {
            addCriterion("emergency_mobile is null");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileIsNotNull() {
            addCriterion("emergency_mobile is not null");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileEqualTo(String value) {
            addCriterion("emergency_mobile =", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileNotEqualTo(String value) {
            addCriterion("emergency_mobile <>", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileGreaterThan(String value) {
            addCriterion("emergency_mobile >", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileGreaterThanOrEqualTo(String value) {
            addCriterion("emergency_mobile >=", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileLessThan(String value) {
            addCriterion("emergency_mobile <", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileLessThanOrEqualTo(String value) {
            addCriterion("emergency_mobile <=", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileLike(String value) {
            addCriterion("emergency_mobile like", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileNotLike(String value) {
            addCriterion("emergency_mobile not like", value, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileIn(List<String> values) {
            addCriterion("emergency_mobile in", values, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileNotIn(List<String> values) {
            addCriterion("emergency_mobile not in", values, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileBetween(String value1, String value2) {
            addCriterion("emergency_mobile between", value1, value2, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyMobileNotBetween(String value1, String value2) {
            addCriterion("emergency_mobile not between", value1, value2, "emergencyMobile");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipIsNull() {
            addCriterion("emergency_relationship is null");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipIsNotNull() {
            addCriterion("emergency_relationship is not null");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipEqualTo(String value) {
            addCriterion("emergency_relationship =", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipNotEqualTo(String value) {
            addCriterion("emergency_relationship <>", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipGreaterThan(String value) {
            addCriterion("emergency_relationship >", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipGreaterThanOrEqualTo(String value) {
            addCriterion("emergency_relationship >=", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipLessThan(String value) {
            addCriterion("emergency_relationship <", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipLessThanOrEqualTo(String value) {
            addCriterion("emergency_relationship <=", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipLike(String value) {
            addCriterion("emergency_relationship like", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipNotLike(String value) {
            addCriterion("emergency_relationship not like", value, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipIn(List<String> values) {
            addCriterion("emergency_relationship in", values, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipNotIn(List<String> values) {
            addCriterion("emergency_relationship not in", values, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipBetween(String value1, String value2) {
            addCriterion("emergency_relationship between", value1, value2, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andEmergencyRelationshipNotBetween(String value1, String value2) {
            addCriterion("emergency_relationship not between", value1, value2, "emergencyRelationship");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIsNull() {
            addCriterion("hospital_id is null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIsNotNull() {
            addCriterion("hospital_id is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalIdEqualTo(Long value) {
            addCriterion("hospital_id =", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotEqualTo(Long value) {
            addCriterion("hospital_id <>", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThan(Long value) {
            addCriterion("hospital_id >", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) {
            addCriterion("hospital_id >=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThan(Long value) {
            addCriterion("hospital_id <", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdLessThanOrEqualTo(Long value) {
            addCriterion("hospital_id <=", value, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdIn(List<Long> values) {
            addCriterion("hospital_id in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotIn(List<Long> values) {
            addCriterion("hospital_id not in", values, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdBetween(Long value1, Long value2) {
            addCriterion("hospital_id between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalIdNotBetween(Long value1, Long value2) {
            addCriterion("hospital_id not between", value1, value2, "hospitalId");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNull() {
            addCriterion("hospital_name is null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIsNotNull() {
            addCriterion("hospital_name is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalNameEqualTo(String value) {
            addCriterion("hospital_name =", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotEqualTo(String value) {
            addCriterion("hospital_name <>", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThan(String value) {
            addCriterion("hospital_name >", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameGreaterThanOrEqualTo(String value) {
            addCriterion("hospital_name >=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThan(String value) {
            addCriterion("hospital_name <", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLessThanOrEqualTo(String value) {
            addCriterion("hospital_name <=", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameLike(String value) {
            addCriterion("hospital_name like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotLike(String value) {
            addCriterion("hospital_name not like", value, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameIn(List<String> values) {
            addCriterion("hospital_name in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotIn(List<String> values) {
            addCriterion("hospital_name not in", values, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameBetween(String value1, String value2) {
            addCriterion("hospital_name between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andHospitalNameNotBetween(String value1, String value2) {
            addCriterion("hospital_name not between", value1, value2, "hospitalName");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNull() {
            addCriterion("task_id is null");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNotNull() {
            addCriterion("task_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaskIdEqualTo(Long value) {
            addCriterion("task_id =", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotEqualTo(Long value) {
            addCriterion("task_id <>", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThan(Long value) {
            addCriterion("task_id >", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThanOrEqualTo(Long value) {
            addCriterion("task_id >=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThan(Long value) {
            addCriterion("task_id <", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThanOrEqualTo(Long value) {
            addCriterion("task_id <=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdIn(List<Long> values) {
            addCriterion("task_id in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotIn(List<Long> values) {
            addCriterion("task_id not in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdBetween(Long value1, Long value2) {
            addCriterion("task_id between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotBetween(Long value1, Long value2) {
            addCriterion("task_id not between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeIsNull() {
            addCriterion("hospital_longitude is null");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeIsNotNull() {
            addCriterion("hospital_longitude is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeEqualTo(BigDecimal value) {
            addCriterion("hospital_longitude =", value, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeNotEqualTo(BigDecimal value) {
            addCriterion("hospital_longitude <>", value, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeGreaterThan(BigDecimal value) {
            addCriterion("hospital_longitude >", value, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_longitude >=", value, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeLessThan(BigDecimal value) {
            addCriterion("hospital_longitude <", value, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_longitude <=", value, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeIn(List<BigDecimal> values) {
            addCriterion("hospital_longitude in", values, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeNotIn(List<BigDecimal> values) {
            addCriterion("hospital_longitude not in", values, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_longitude between", value1, value2, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLongitudeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_longitude not between", value1, value2, "hospitalLongitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeIsNull() {
            addCriterion("hospital_latitude is null");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeIsNotNull() {
            addCriterion("hospital_latitude is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeEqualTo(BigDecimal value) {
            addCriterion("hospital_latitude =", value, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeNotEqualTo(BigDecimal value) {
            addCriterion("hospital_latitude <>", value, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeGreaterThan(BigDecimal value) {
            addCriterion("hospital_latitude >", value, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_latitude >=", value, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeLessThan(BigDecimal value) {
            addCriterion("hospital_latitude <", value, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("hospital_latitude <=", value, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeIn(List<BigDecimal> values) {
            addCriterion("hospital_latitude in", values, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeNotIn(List<BigDecimal> values) {
            addCriterion("hospital_latitude not in", values, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_latitude between", value1, value2, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andHospitalLatitudeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("hospital_latitude not between", value1, value2, "hospitalLatitude");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}